package com.book.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;

@Controller
public class PageController {

    @GetMapping({"/", "/index", "/index.html"})
    public String toIndex(){
        return "index";
    }

    @GetMapping("/admin")
    public String toAdmin(){
        return "admin/login";
    }
}
